﻿package  {
	
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	public class MapUI extends MovieClip 
	{
		public var px:int = 124;
		public var py:int = 120;
		
		public function MapUI() 
		{
			// constructor code
			stop();
			
			closeButton.addEventListener( MouseEvent.CLICK , onClick );
		}
		
		public function setName( n:String ):void
		{
			nameText.text = n;
		}
		
		public function setPos( xx:int , yy:int ):void
		{
			xText.text = xx.toString();
			yText.text = yy.toString();
		}
		
		private function onClick( e:MouseEvent )
		{
			this.visible = false;
		}
	}
	
}
